package json;

import java.beans.Transient;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

public class User {
    private String name;
    private String sex;
    private String address;
    private String defVal = "hello";
    private String trans;
    private int age;
    private Long seconds;
    private BigDecimal salary;
    private Boolean flag;
    private Date birth;
    private List<String> roles;
    private Map<String, Object> map;
    private Week week;
    private String nullVal;

    public enum Week {
        Mon(1), Tue(2), Wed(3), Thu(4), Fir(5), Sat(6), Sun(7);
        private int val;

        Week(Integer val) {
            this.val = val;
        }

        public int getVal() {
            return val;
        }
    }

    public String getTest() {
        return "test";
    }

    @Transient
    public String getTrans() {
        return trans;
    }

    public void setTrans(String trans) {
        this.trans = trans;
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<String> getRoles() {
        return roles;
    }

    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    public Week getWeek() {
        return week;
    }

    public void setWeek(Week week) {
        this.week = week;
    }

    public String getNullVal() {
        return nullVal;
    }

    public void setNullVal(String nullVal) {
        this.nullVal = nullVal;
    }

    public Long getSeconds() {
        return seconds;
    }

    public void setSeconds(Long seconds) {
        this.seconds = seconds;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getDefVal() {
        return defVal;
    }

    public void setDefVal(String defVal) {
        this.defVal = defVal;
    }

    public BigDecimal getSalary() {
        return salary;
    }

    public void setSalary(BigDecimal salary) {
        this.salary = salary;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }
}